<commit_before><link rel="import" href="../../../bower_components/polymer/polymer.html">

<link rel="import" href="../../../bower_components/iron-icon/iron-icon.html">
<link rel="import" href="../../../bower_components/iron-icons/iron-icons.html">
<link rel="import" href="../../../bower_components/iron-icons/social-icons.html">
<link rel="import" href="../../../bower_components/iron-icons/maps-icons.html">
<link rel="import" href="../../../bower_components/iron-iconset/iron-iconset.html">
<link rel="import" href="../../../bower_components/iron-iconset-svg/iron-iconset-svg.html">
<link rel="import" href="../../../bower_components/paper-icon-button/paper-icon-button.html">

<link rel="import" href="../things-button/things-button.html">
<link rel="import" href="../things-combo/things-resource-selector-behavior.html">
<link rel="import" href="../things-grid/things-resource-grid.html">
<link rel="import" href="../things-file-upload/things-file-upload.html">
<link rel="import" href="../things-resource/things-resource.html">

<link rel="import" href="../things-content/things-load-view-behavior.html">
<link rel="import" href="../things-content/things-resource-meta-behavior.html">
<link rel="import" href="../things-content/things-route-content-behavior.html">
<link rel="import" href="../things-msg-box/things-msgbox-behavior.html">
<link rel="import" href="../things-setting/things-global-behavior.html">

<dom-module id="things-extension">
  <template>
    <div class="[[layout]]">
      <things-resource 
        id="resourceSearch"
        method="GET"
        action="[[gridSearchUrl]]"
        last-response="{{lastResponse}}"
        auto>
      </things-resource>

      <things-resource-grid 
        id="grid"
        config="[[gridConfig]]"
        model="[[gridModel]]" 
        columns="[[gridColumns]]"
        data="[[lastResponse]]"
        grid-save-action="[[gridSaveUrl]]"
        buttons="[[buttons]]"
        enable-detail-column
        enable-toolbar>
      </things-resource-grid>
      
    </div>

  </template>

  <script>
    Polymer({
      is: 'things-extension',

      behaviors: [ 
        Things.MsgBoxBehavior
      ],
      
      properties: {
        type: {
          type: String
        },

        id: {
          type: String
        },

        gridModel: {
          type: Object,
          value: function() {
            return [
              { 'fieldName' : 'name' },
              { 'fieldName' : 'value' }
            ]
          }
        },
        
        gridColumns: {
          type: Object,
          value: function() {
            return [
              { 'fieldName' : 'name' },
              { 'fieldName' : 'value' },
            ]
          }
        },
        /**
         * 그리드 search URL
         */
        gridSearchUrl: {
          type: String,
          computed: '_computeGridSearchUrl(type, id)',
        },<commit_msg>things-extension 수정했습니다.<commit_after><link rel="import" href="../../../bower_components/polymer/polymer.html">

<link rel="import" href="../../../bower_components/iron-icon/iron-icon.html">
<link rel="import" href="../../../bower_components/iron-icons/iron-icons.html">
<link rel="import" href="../../../bower_components/iron-icons/social-icons.html">
<link rel="import" href="../../../bower_components/iron-icons/maps-icons.html">
<link rel="import" href="../../../bower_components/iron-iconset/iron-iconset.html">
<link rel="import" href="../../../bower_components/iron-iconset-svg/iron-iconset-svg.html">
<link rel="import" href="../../../bower_components/paper-icon-button/paper-icon-button.html">

<link rel="import" href="../things-button/things-button.html">
<link rel="import" href="../things-combo/things-resource-selector-behavior.html">
<link rel="import" href="../things-grid/things-resource-grid.html">
<link rel="import" href="../things-file-upload/things-file-upload.html">
<link rel="import" href="../things-resource/things-resource.html">

<link rel="import" href="../things-content/things-load-view-behavior.html">
<link rel="import" href="../things-content/things-resource-meta-behavior.html">
<link rel="import" href="../things-content/things-route-content-behavior.html">
<link rel="import" href="../things-msg-box/things-msgbox-behavior.html">
<link rel="import" href="../things-setting/things-global-behavior.html">

<dom-module id="things-extension">
  <template>
    <div class="[[layout]]">
      <things-resource 
        id="resourceSearch"
        method="GET"
        action="[[gridSearchUrl]]"
        last-response="{{lastResponse}}"
        auto>
      </things-resource>

      <things-resource-grid 
        id="grid"
        config="[[gridConfig]]"
        model="[[gridModel]]" 
        columns="[[gridColumns]]"
        data="[[lastResponse]]"
        grid-save-action="[[gridSaveUrl]]"
        buttons="[[buttons]]"
        enable-detail-column
        enable-toolbar>
      </things-resource-grid>
      
    </div>

  </template>

  <script>
    Polymer({
      is: 'things-extension',

      behaviors: [ 
        Things.MsgBoxBehavior
      ],
      
      properties: {
        type: {
          type: String
        },

        id: {
          type: String
        },

        gridModel: {
          type: Object,
          value: function() {
            return [
              { 'fieldName' : 'name' },
              { 'fieldName' : 'value' }
            ]
          }
        },
        
        gridColumns: {
          type: Object,
          value: function() {
            return [
              {
                fieldName: 'name',
                width: '120'
              }, {
                fieldName: 'value',
                width: '600'
              }
            ]
          }
        },
        /**
         * 그리드 search URL
         */
        gridSearchUrl: {
          type: String,
          computed: '_computeGridSearchUrl(type, id)',
        },
{'fraction_non_alphanumeric': 0.18929415737926375, 'fraction_numerical': 0.0010131712259371835, 'mean_word_length': 2.1140904311251316, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4621248', 'n_tokens_mistral': 1815, 'n_tokens_neox': 1712, 'n_words': 247}